4a64fdbf967e7500573f681bdfcf8dc5704006da,source_gen/jetbrains/mps/patterns/editor/PropertyPatternVariableDeclaration_Editor.java,PropertyPatternVariableDeclaration_Editor,createVarNameCellinternal,#EditorContext#SNode#,55

Before Change


    return editorCell;
  }
  public EditorCell createVarNameCellinternal(EditorContext context, SNode node) {
    String propertyName = "varName";
    PropertyAccessor propertyAccessor = new PropertyAccessor(node, propertyName, false, false, context);
    EditorCell_Property editorCell = EditorCell_Property.create(context, propertyAccessor, node);
    editorCell.setSelectable(true);
    editorCell.setDrawBorder(false);
    editorCell.setEditable(true);
    editorCell.setDefaultText("");
    editorCell.setDrawBrackets(false);
    editorCell.setBracketsColor(Color.black);
    editorCell.setFontType(MPSFonts.BOLD_ITALIC);
    editorCell.getTextLine().setTextColor(MPSColors.DARK_BLUE);
    editorCell.setAction(EditorCellAction.DELETE, new CellAction_DeleteProperty(node, "varName"));
    editorCell.putUserObject(EditorCell.CELL_ID, "1136720096760");
    editorCell.setLayoutConstraint("");
    return editorCell;

After Change


    return editorCell;
  }
  public EditorCell createVarNameCellinternal(EditorContext context, SNode node, CellProviderWithRole aProvider) {
    CellProviderWithRole provider = aProvider;
    provider.setAuxiliaryCellProvider(null);
    EditorCell editorCell = provider.createEditorCell(context);
    editorCell.setDrawBorder(false);
    editorCell.setDrawBrackets(false);
    editorCell.setBracketsColor(Color.black);
    editorCell.setFontType(MPSFonts.BOLD_ITALIC);
    if(editorCell instanceof EditorCell_Label) {
      EditorCell_Label editorCellLabel = (EditorCell_Label)editorCell;
      editorCellLabel.setEditable(true);
      editorCellLabel.getTextLine().setTextColor(MPSColors.DARK_BLUE);
    }
    editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
    editorCell.putUserObject(EditorCell.CELL_ID, "1136720096760");
    editorCell.setLayoutConstraint("");
    return editorCell;